rand
inline fun <T : Number, D : Dimension> Multik.rand( from: T, until: T, vararg dims: Int): NDArray<T, D>
Content copied to clipboard
Returns an NDArray of the specified shape filled with number uniformly distributed between [from, until)
inline fun <T : Number, D : Dimension> Multik.rand( from: T, until: T, dims: IntArray): NDArray<T, D>
Content copied to clipboard
Returns an NDArray of the specified shape filled with number uniformly distributed between [from, until)
Note: Float generation is inefficient.
inline fun <T : Number, D : Dimension> Multik.rand( seed: Int, from: T, until: T, vararg dims: Int): NDArray<T, D>
Content copied to clipboard
inline fun <T : Number, D : Dimension> Multik.rand( seed: Int, from: T, until: T, dims: IntArray): NDArray<T, D>
Content copied to clipboard
Returns an NDArray of the specified shape filled with number uniformly distributed between [from, until) with the specified seed.
Note: Float generation is inefficient.
inline fun <T : Number, D : Dimension> Multik.rand( gen: Random, from: T, until: T, vararg dims: Int): NDArray<T, D>
Content copied to clipboard
inline fun <T : Number, D : Dimension> Multik.rand( gen: Random, from: T, until: T, dims: IntArray): NDArray<T, D>
Content copied to clipboard
Returns an NDArray of the specified shape filled with number uniformly distributed between [from, until) with the specified gen.
Note: Float generation is inefficient.